<wxs src="../../utils/common.wxs" module="filter" />
<view class="product_list_box" bindtap="detailClick" data-code='{{item.id}}' data-type='{{item.status}}'>
    <view class="product_list">
        <view class="left">
            <!--  <view class='small {{item.type==10?"color1":"color2"}}'>
                 {{item.type==10?'塔吊':'电梯'}}
             </view> -->
             <image   wx:if='{{item.wxEquipmentPic.length>0}}' src="{{item.wxEquipmentPic[0].url}}" />
             <image  wx:if='{{item.type==10&&item.wxEquipmentPic.length==0}}' src="http://qn.shebeib.com/11108e3e317028cf3d31fde3f3a133d.jpg" />
             <image  wx:if='{{item.type==20&&item.wxEquipmentPic.length==0}}' src="http://qn.shebeib.com/9edf66749d0f2105a59e5f2aeb201ee.jpg" />
          <view catchtap='toTop' class='toTop' wx:if='{{item.status==20}}' data-code='{{item.id}}'>免费置顶</view>
        </view>
        <view class="right_content">
            <view class="title">{{item.title}}</view>
            <view class="time_address">
                <image src="../../image/time_icon.png" /><text>{{filter.flitTime(item.updated)}}</text>
                <image src="../../image/position_gray_icon.png" /><text>{{filter.fitName(item.city)}}</text>
            </view>
            <view class="user_info">
                <view class="info_price" wx:if='{{item.price==0}}'>面议</view>
                <view class="info_price" wx:if='{{item.price!=0}}'>{{item.price}}万</view>
            </view>
            <view class='typeList'>
              
               <view  wx:if='{{item.status==30}}' data-code='{{item.id}}'>已卖出</view>
               <view catchtap='sale' class='nomal' wx:if='{{item.status==20}}' data-code='{{item.id}}'>卖出</view>
               <view catchtap='delete' class='nomal' wx:if='{{item.status!=30}}' data-code='{{item.id}}'>删除</view>
               <view catchtap='edit' class='edit' wx:if='{{item.status!=30}}' data-code='{{item.id}}'>编辑</view>
            </view>
        </view>
    </view>
</view>